﻿using System;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           string userName= Request.QueryString["UserName"];
           string passWorld = Request.QueryString["PassWorld"];
            string userName1 = Request.Form["UserName"];
            string passWorld1 = Request.Form["PassWorld"];
            if (userName == null)
            {
                Label2.Text = $"你好：{userName1},你的密码是：{passWorld1}";
            }
            else 
            {
                Label1.Text = $"你好：{userName},你的密码是：{passWorld}";
            }
        }
    }
}